﻿@using MyWebLog.Models.Admin
@model LoginForm
@{
    ViewBag.Title = "Log In \u00ab " + ViewBag.Blog.Name;
    ViewBag.PageTitle = "Log In";
}

@using (Html.BeginForm("ProcessLogin", "Admin", FormMethod.Post))
{
    @Html.HiddenFor(model => model.RedirectURL)
    <div class="CenteredContent">
        <div id="LoginFormContent">
            @Html.LabelFor(model => model.EmailAddress)<br />
            @Html.EditorFor(model => model.EmailAddress)<br /><br />
            @Html.LabelFor(model => model.Password)<br />
            @Html.PasswordFor(model => model.Password)
        </div><br /><br />
        <input type="submit" value="Log In" /><br /><br />
        @Html.ValidationSummary()
    </div>
}